<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />

<meta name="viewport" content="width=device-width, initial-scale=1" />



<title>Using renv with RStudio Connect</title>

<script>// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
// be compatible with the behavior of Pandoc < 2.8).
document.addEventListener('DOMContentLoaded', function(e) {
  var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
  var i, h, a;
  for (i = 0; i < hs.length; i++) {
    h = hs[i];
    if (!/^h[1-6]$/i.test(h.tagName)) continue;  // it should be a header h1-h6
    a = h.attributes;
    while (a.length > 0) h.removeAttribute(a[0].name);
  }
});
</script>

<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>







<style type="text/css">body {
background-color: #fff;
margin: 1em auto;
max-width: 700px;
overflow: visible;
padding-left: 2em;
padding-right: 2em;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.35;
}
#TOC {
clear: both;
margin: 0 0 10px 10px;
padding: 4px;
width: 400px;
border: 1px solid #CCCCCC;
border-radius: 5px;
background-color: #f6f6f6;
font-size: 13px;
line-height: 1.3;
}
#TOC .toctitle {
font-weight: bold;
font-size: 15px;
margin-left: 5px;
}
#TOC ul {
padding-left: 40px;
margin-left: -1.5em;
margin-top: 5px;
margin-bottom: 5px;
}
#TOC ul ul {
margin-left: -2em;
}
#TOC li {
line-height: 16px;
}
table {
margin: 1em auto;
border-width: 1px;
border-color: #DDDDDD;
border-style: outset;
border-collapse: collapse;
}
table th {
border-width: 2px;
padding: 5px;
border-style: inset;
}
table td {
border-width: 1px;
border-style: inset;
line-height: 18px;
padding: 5px 5px;
}
table, table th, table td {
border-left-style: none;
border-right-style: none;
}
table thead, table tr.even {
background-color: #f7f7f7;
}
p {
margin: 0.5em 0;
}
blockquote {
background-color: #f6f6f6;
padding: 0.25em 0.75em;
}
hr {
border-style: solid;
border: none;
border-top: 1px solid #777;
margin: 28px 0;
}
dl {
margin-left: 0;
}
dl dd {
margin-bottom: 13px;
margin-left: 13px;
}
dl dt {
font-weight: bold;
}
ul {
margin-top: 0;
}
ul li {
list-style: circle outside;
}
ul ul {
margin-bottom: 0;
}
pre, code {
background-color: #f7f7f7;
border-radius: 3px;
color: #333;
white-space: pre-wrap; 
}
pre {
border-radius: 3px;
margin: 5px 0px 10px 0px;
padding: 10px;
}
pre:not([class]) {
background-color: #f7f7f7;
}
code {
font-family: Consolas, Monaco, 'Courier New', monospace;
font-size: 85%;
}
p > code, li > code {
padding: 2px 0px;
}
div.figure {
text-align: center;
}
img {
background-color: #FFFFFF;
padding: 2px;
border: 1px solid #DDDDDD;
border-radius: 3px;
border: 1px solid #CCCCCC;
margin: 0 5px;
}
h1 {
margin-top: 0;
font-size: 35px;
line-height: 40px;
}
h2 {
border-bottom: 4px solid #f7f7f7;
padding-top: 10px;
padding-bottom: 2px;
font-size: 145%;
}
h3 {
border-bottom: 2px solid #f7f7f7;
padding-top: 10px;
font-size: 120%;
}
h4 {
border-bottom: 1px solid #f7f7f7;
margin-left: 8px;
font-size: 105%;
}
h5, h6 {
border-bottom: 1px solid #ccc;
font-size: 105%;
}
a {
color: #0033dd;
text-decoration: none;
}
a:hover {
color: #6666ff; }
a:visited {
color: #800080; }
a:visited:hover {
color: #BB00BB; }
a[href^="http:"] {
text-decoration: underline; }
a[href^="https:"] {
text-decoration: underline; }

code > span.kw { color: #555; font-weight: bold; } 
code > span.dt { color: #902000; } 
code > span.dv { color: #40a070; } 
code > span.bn { color: #d14; } 
code > span.fl { color: #d14; } 
code > span.ch { color: #d14; } 
code > span.st { color: #d14; } 
code > span.co { color: #888888; font-style: italic; } 
code > span.ot { color: #007020; } 
code > span.al { color: #ff0000; font-weight: bold; } 
code > span.fu { color: #900; font-weight: bold; } 
code > span.er { color: #a61717; background-color: #e3d2d2; } 
</style>




</head>

<body>




<h1 class="title toc-ignore">Using renv with RStudio Connect</h1>



<p><a href="https://posit.co/products/enterprise/connect/">RStudio
Connect</a> is a publication platform for deploying content built in R
and Python to share with a broad audience. R users may want to develop
content (like <a href="https://shiny.rstudio.com/">Shiny
applications</a> or <a href="https://rmarkdown.rstudio.com/index.html">RMarkdown documents</a>)
using <code>renv</code> and then publish that content to RStudio
Connect. This is a supported pattern where <code>renv</code> is used to
manage the local project environment and then RStudio Connect recreates
and manages the deployment environment.</p>
<div id="publishing-from-the-rstudio-ide" class="section level2">
<h2>Publishing from the RStudio IDE</h2>
<p>The RStudio IDE includes a button for push-button deployment to
RStudio Connect: <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAACyCAYAAAAu7+rSAAAK4GlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU8kagOfe9JAQICECUkJvgnQCSAk9gIJ0EJWQBBJKiCkI2JXFFVwVRKSpK7AqouDqCshaEAtWFAvYF2RRUJ6LBRsq7wKPsLvvvPfO+8+ZO9/57z9/mTNzzj8AkEM4YnE6rAJAhkgmCQ/wZsTGxTNwvwMSIAAcgIAphysVs8LCQgAi0/Nf5X03YofIbasJX//+/7+KGo8v5QIAJSCcxJNyMxBuQ8YrrlgiAwB1BNEbLpeJJ/gOwjQJkiDCgxOcMsVfJjhpktEqkzaR4T4IGwGAJ3E4khQASDaInpHFTUH8kMIQthHxhCKE1yLswRVweAgjccGcjIzMCR5G2AyxFwNApiHMTPqTz5S/+E9S+OdwUhQ8Vdek4H2FUnE6J+f/3Jr/LRnp8ukYJsggCSSB4chMR/bvXlpmsIJFSQtCp1nIm7SfZIE8MGqauVKf+GnmcXyDFWvTF4RMc7LQn63wI2NHTjNf6hcxzZLMcEWsZIkPa5o5kpm48rQohV7AZyv85woiY6Y5Sxi9YJqlaRHBMzY+Cr1EHq7Iny8K8J6J66+oPUP6p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QqbpaqThSEBEiABEqCwsQ2QAAmQAAlYigCFzVLVycKQAAmQAAlQ2NgGSIAESIAELEWAwmap6mRhSIAESIAEKGxsAyRAAiRAApYiQGGzVHWyMCRAAiRAAhQ2tgESIAESIAFLEaCwWao6WRgSIAESIAEKG9sACZAACZCApQhQ2CxVnSwMCZAACZAAhY1tgARIgARIwFIEKGyWqk4WhgRIgARIgMLGNkACJEACJGApAhQ2S1UnC0MCJEACJEBhYxsgARIgARKwFAEKm6Wqk4UhARIgARKgsLENkAAJkAAJWIoAhc1S1cnCkAAJkAAJUNjYBkiABEiABCxFgMJmqepkYUiABEiABChsbAMkQAIkQAKWIkBhs1R1sjAkQAIkQAIUNrYBEiABEiABSxGgsFmqOlkYEiABEiABChvbAAmQAAmQgKUIUNgsVZ0sDAmQAAmQAIWNbYAESIAESMBSBChslqpOFoYESIAESIDCxjZAAiRAAiRgKQIUNktVJwtDAiRAAiRAYWMbIAESIAESsBQBCpulqpOFIQESIAESoLCxDZAACZAACViKAIXNUtXJwpAACZAACVDY2AZIgARIgAQsRYDCZqnqZGFIgARIgAQobGwDJEACJEACliJAYbNUdbIwJEACJEACFDa2ARIgARIgAUsRoLBZqjpZGBIgARIggf8H7rRi8090qhkAAAAASUVORK5CYII=" alt="RStudio IDE Publish Button" /></p>
<p>When this option is used to deploy content to RStudio Connect, a
manifest file is automatically generated and sent to RStudio Connect
describing the project environment. This manifest file will reflect the
project environment create and managed by <code>renv</code>. The
<code>renv</code> generated <code>.Rprofile</code> file should
<strong>not</strong> be included in deployments to RStudio Connect.</p>
</div>
<div id="publishing-programatically" class="section level2">
<h2>Publishing programatically</h2>
<p>When publishing content to RStudio Connect programatically, it is
necessary to generate a manifest file describing the project
environment. This can be done with the <code>writeManifest()</code>
function from the <a href="https://github.com/rstudio/rsconnect"><code>rsconnect</code></a>
package. When using <code>renv</code>, the only thing that needs to be
considered is that <code>rsconnect</code> should be installed and
executed from within the <code>renv</code> environment so that it
recognizes the local project library when generating the manifest file.
As long as <code>rsconnect</code> is run from within the
<code>renv</code> created environment, it will capture project
dependencies from the local <code>renv</code> library. This can be
accomplished by opening the project in RStudio or by starting the R
session from the project root directory. The <code>renv</code> generated
<code>.Rprofile</code> file should <strong>not</strong> be included in
deployments to RStudio Connect.</p>
</div>
<div id="a-word-about-packrat" class="section level2">
<h2>A word about packrat</h2>
<p>RStudio Connect uses <a href="https://rstudio.github.io/packrat/"><code>packrat</code></a> to
restore project environments on the RStudio Connect server. This should
have no impact on how the user develops content for RStudio Connect. It
is not necessary for the user to use <code>packrat</code> instead of
<code>renv</code> when developing content, as the environment management
tool used locally has no impact on the tools RStudio Connect uses for
environment management. Therefore, there should be no concerns with
using <code>renv</code> to develop content that will be deployed to
RStudio Connect.</p>
</div>



<!-- code folding -->


<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
  (function () {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src  = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
    document.getElementsByTagName("head")[0].appendChild(script);
  })();
</script>

</body>
</html>
